# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class RefreshTask(object):

    def __init__(self, createDate=None, failed=None, success=None, taskId=None, id=None, retryStatus=None, taskStatus=None, taskType=None, urlTasks=None):
        """
        :param createDate: (Optional) 任务创建时间,UTC时间
        :param failed: (Optional) 任务失败率
        :param success: (Optional) 任务成功率
        :param taskId: (Optional) 刷新预热的任务id
        :param id: (Optional) 数据库表id
        :param retryStatus: (Optional) 重试状态(unretry:不重试,retry:重试)
        :param taskStatus: (Optional) 任务状态(running:执行中,success:成功,failed:失败)
        :param taskType: (Optional) 刷新预热类型,(url:url刷新,dir:目录刷新,prefetch:预热)
        :param urlTasks: (Optional) 详细的任务
        """

        self.createDate = createDate
        self.failed = failed
        self.success = success
        self.taskId = taskId
        self.id = id
        self.retryStatus = retryStatus
        self.taskStatus = taskStatus
        self.taskType = taskType
        self.urlTasks = urlTasks
